| lcPaint_ImageResize | Home |
|
BOOL lcPaint_ImageResize ( HANDLE hImage, int NewWidth, int NewHeight, int Filter ); |
| hImage | |||||||||||||||
| Handle to raster image object. | |||||||||||||||
| NewWidth | |||||||||||||||
| Destination image width (pixels) | |||||||||||||||
| NewHeight | |||||||||||||||
| Destination image height (pixels) | |||||||||||||||
| Filter | |||||||||||||||
The following filters can be used as resampling filters:
| |||||||||||||||
| If the function succeeds, the return value is nonzero (TRUE). |
//-----------------------------------------------
void LcAppDemo01::LoadImages ()
{
...
// copy image 11, then reduce resolution 4 times
hImage2 = lcPaint_ImageAdd( 13 );
lcPaint_ImageCopy( hImage, hImage2 );
W = lcPropGetInt( hImage2, LC_PROP_IMAGE_W ) / 4;
H = lcPropGetInt( hImage2, LC_PROP_IMAGE_H ) / 4;
lcPaint_ImageResize( hImage2, W, H, LC_IMGRES_BICUBIC );
...
}